import request from '@/utils/request'

// 查询家政服务列列表
export function listHousekeepingCommodity(query) {
  return request({
    url: '/recycle/housekeepingCommodity/list',
    method: 'get',
    params: query
  })
}

// 查询家政服务列详细
export function getHousekeepingCommodity(id) {
  return request({
    url: '/recycle/housekeepingCommodity/' + id,
    method: 'get'
  })
}

// 新增家政服务列
export function addHousekeepingCommodity(data) {
  return request({
    url: '/recycle/housekeepingCommodity',
    method: 'post',
    data: data
  })
}

// 修改家政服务列
export function updateHousekeepingCommodity(data) {
  return request({
    url: '/recycle/housekeepingCommodity',
    method: 'put',
    data: data
  })
}

// 删除家政服务列
export function delHousekeepingCommodity(id) {
  return request({
    url: '/recycle/housekeepingCommodity/' + id,
    method: 'delete'
  })
}
